import CryptoJS from 'crypto-js';

export default {
  encrypt(word, keyStr) {
    keyStr = keyStr ? keyStr : 'abcdefgabcdefg12';
    var key = CryptoJS.enc.Utf8.parse(keyStr);
    var srcs = CryptoJS.enc.Utf8.parse(word);
    var encrypted = CryptoJS.AES.encrypt(srcs, key, {
      mode: CryptoJS.mode.ECB,
      padding: CryptoJS.pad.Pkcs7
    });
    return encrypted.toString();
  },
}

export const MOUTN = '2c4a40d86ac86b4d690a2a68cce70fcf8a7110b31b197f73b08805f144221dee66e778063ba'
